/* eslint-disable no-undef */
export default {
  namespaced: true,
  state: {
    orderGoods: {
      // 请求订单的的时候，提交的商品信息都在这里
      id: 1,
      code: 5353535, // 订单号
      items: [
        {
          id: 856379,
          minPrice: 369,
          num: 1,
          name: '韩式系列',
          pic: 'https://dcdn.it120.cc/2021/05/17/b67c2a97-b3e0-4a60-84d7-4bed3ae01f31.jpg',
          tags: '11枝热销款'
        },
        {
          id: 856390,
          minPrice: 400,
          num: 1,
          name: '韩式系列',
          pic: 'https://dcdn.it120.cc/2021/05/17/b67c2a97-b3e0-4a60-84d7-4bed3ae01f31.jpg',
          tags: '11枝热销款'
        }
      ],
      totalPrice: 769,
      orderContact: {
        id: 1,
        name: '哈哈',
        tel: 17898098888,
        address: '安徽省合肥市蜀山区荷叶地街道'
      }
    }
  },
  mutations: {
    set_order_contact (state, contact) {
      state.orderGoods.orderContact = contact
    }
  }
}
